package com.sohoometer.web;

import java.io.IOException;
import java.io.InputStream;

import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.fluent.Content;
import org.apache.http.client.fluent.Request;
import org.apache.http.client.fluent.Response;

public class HttpClient {
	public static void main(String[] args) throws Exception {
		InputStream resourceAsStream = WebPost.class.getResourceAsStream("test");
		String host = "http://www.educity.cn/shipin/ws_play.asmx";
		Response response = Request.Post(host).bodyStream(resourceAsStream).execute();
		String string = response.toString();
		HttpResponse returnResponse = response.returnResponse();
		System.out.println();
	}
public HttpClient() {
}

}
